<?php  $conf = G('conf');?>
<?php $header = G('header');?>
<?php $user = G('user');?>
<?php $uid = G('uid');?>
<?php $gid = G('gid');?>
<?php $fid = G('fid');?>
<?php $tid = G('tid');?>
<?php $pid = G('pid');?>
<?php $route = G('route');?>
<?php $forumlist_show = G('forumlist_show');?>
<?php $static_version = $conf['static_version'];?>
<!--{hook header_start.htm}-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo $header['title'];   ?></title>
<meta name="keywords" content="<?php
if(!empty($tid)) echo get_fenci_header($tid);else echo  $header['title'];  ?>" />
<meta name="description" content="<?php echo $header['title'];   ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="plugin/di_blogs/overwrite/view/css/base.css" rel="stylesheet">
<link href="plugin/di_blogs/overwrite/view/css/m.css" rel="stylesheet">
<link href="plugin/di_blogs/overwrite/view/css/code.css" rel="stylesheet">
<link href="https://www.layuicdn.com/layui-v2.5.4/css/layui.css" rel="stylesheet">
<script src="plugin/di_blogs/overwrite/view/js/jquery-1.8.3.min.js"></script>
<script src="plugin/di_blogs/overwrite/view/js/main.js"></script>
<script src="plugin/di_blogs/overwrite/view/js/code.js"></script>

<!--[if lt IE 9]>
<script src="plugin/di_blogs/overwrite/view/js/modernizr.js"></script>
<![endif]-->
<!-- banner-->
<link rel="stylesheet" href="plugin/di_blogs/overwrite/view/css/swiper.min.css">
<script  rel="stylesheet" src="plugin/di_blogs/overwrite/view/js/swiper.min.js"></script>

<link rel="shortcut icon" href="view/img/favicon.ico" />
<link rel="icon" sizes="32x32" href="view/img/favicon.ico">
<link rel="Bookmark" href="view/img/favicon.ico" />

</head>
<body>

  <div class="logo-section box">
    <div class="search">
      <form action="/search" method="get" name="searchform" id="searchform">
        <input name="keyboard" id="keyboard" class="input_text" value="请输入关键字词" style="color: rgb(153, 153, 153);" onfocus="if(value=='请输入关键字词'){this.style.color='#000';value=''}" onblur="if(value==''){this.style.color='#999';value='请输入关键字词'}" type="text">
        <input name="show" value="title" type="hidden">
        <input name="Submit" class="input_submit" value="搜索" type="submit">
      </form>
    </div>
    <div class="logo">
      <a href="/"><img src="./plugin/di_blogs/logo.png">
        <!-- 网站标题 -->
        <h2 class="logo-title"><?php echo $conf['sitename'];   ?></h2>
        <p class="logo-text"><?php echo $conf['sitebrief'];   ?></p>
      </a>
    </div>
  </div>

  <div class="clear"></div>

  <div class="topnav">
    <!-- 网站标题 手机-->
    <h2><a href="/"><?php echo $conf['sitename'];   ?></a></h2>

    <!-- 导航开始 -->
    <nav>
      <ul id="starlist">
          <li><a href="/">网站首页</a></li>


<!--           <li class="menu"><a href="#" >柒微订阅号助手</a>
            <ul class="sub">
              <li><a href="http://main.7we.net/" target="_blank">官网介绍</a></li>
              <li><a href="./category-13.htm"  >使用介绍</a></li>
              <li><a href="http://wx.7we.net/" target="_blank">管理后台</a></li>
              
              &lt;!&ndash; <li><a href="http://7we.net/article-65.html"  >如何接入</a></li> &ndash;&gt;

            </ul>
          </li>-->
            

<?php  
$navs=kv_get('di_blogs')['nav'];
for($i=0;$i<count($navs);$i++)  { 
?>
          <!-- 下拉导航 start-->
          <li class="menu"><a href="#" ><?php echo $navs[$i]['text'];  ?></a>
            <ul class="sub">

              <?php for($j=0;$j<count($navs[$i]['ids']);$j++)  {
                $_fid=$navs[$i]['ids'][$j];
               ?>
              <li><a href="./category-<?php echo $_fid;  ?>.htm" ><?php echo forum__read($_fid)['name'];  ?></a></li>
              <?php }  ?>

             </ul>
             <span></span>
          </li>
<?php }  ?>

<!--           <li class="menu"><a href="#" >XIUNO</a>
  <ul class="sub">
    <li><a href="./category-1.htm" >xiuno资讯</a></li>
    <li><a href="./category-2.htm" >xiuno插件</a></li>
    <li><a href="./article-161.htm" >插件定制</a></li>
   </ul>
   <span></span>
</li> -->

<!--           <li class="menu"><a href="#" >学习笔记</a>
  <ul class="sub">
    <li><a href="./category-4.htm" >大数据</a></li>
    <li><a href="./category-14.htm" >机器学习</a></li>
    <li><a href="./category-6.htm" >开发语言</a></li>
    <li><a href="./category-7.htm" >系统相关</a></li>
   </ul>
   <span></span>
</li> -->
<!--           <li class="menu"><a href="#" >编程技术</a>
  <ul class="sub">
     <li><a href="./category-6.htm" >编程语言</a></li>
    <li><a href="./category-8.htm" >web技术</a></li>
    <li><a href="./category-7.htm" >系统相关</a></li>
   </ul>
   <span></span>
</li> -->



<!-- 下拉导航 end-->
        <?php if(!empty($user)){ ?>
          <li class="menu"><a href="#" ><?php echo $user['username'] ?></a>
            <ul class="sub">
               <?php if($user['groupname'] == '管理员组'){ ?>
                <li><a href="./?thread-create-<?php echo $fid;  ?>.htm" >发布文章</a></li>
                <li><a href="./admin" >后台管理</a></li>
               <?php } ?>
              <li><a href="#" >积分：10</a></li>
              <li><a href="#" >充值积分</a></li>
              <li><a href="./?user-logout.htm" >退出登录</a></li>
             </ul>
             <span></span>
          </li>
        <?php }else{ ?>
        <li><a href="./?user-login.htm">登录</a></li>
        <?php } ?>
      </ul>
    </nav>
    <h2 id="mnavh"><span class="navicon"></span></h2>
  </div>
  <!-- 导航结束 -->

  <!-- 搜索开始 -->
  <div class="is-search">
    <section><i></i>请输入搜索关键字词</section>
  </div>


  <div class="search-page">
    <div class="go-left"></div>
    <div class="search">
      <form action="/?search" method="get" name="searchform" id="searchform">
        <input name="keyboard" id="keyboard" class="input_text" value="请输入关键字词" style="color: rgb(153, 153, 153);" onfocus="if(value=='请输入关键字词'){this.style.color='#000';value=''}" onblur="if(value==''){this.style.color='#999';value='请输入关键字词'}" type="text">
        <input name="show" value="title" type="hidden">
        <input name="tempid" value="1" type="hidden">
        <input name="tbname" value="news" type="hidden">
        <input name="Submit" class="input_submit" value="搜索" type="submit">
      </div>
    </form>

    <div class="clear"></div>
<!--     <div class="hot-search">
  <p>热门搜索排行</p>
  <ul class="search-paihang">
    <li><a href="/e/search/result/?searchid=13"><i>1</i>个人</a></li>
    <li><a href="/e/search/result/?searchid=2"><i>2</i>个人博客</a></li>
    <li><a href="/e/search/result/?searchid=3"><i>3</i>博客</a></li>
    <li><a href="/e/search/result/?searchid=6"><i>4</i>帝国</a></li>
    <li><a href="/e/search/result/?searchid=23"><i>5</i>告别</a></li>
    <li><a href="/e/search/result/?searchid=25"><i>6</i>seo</a></li>
    <li><a href="/e/search/result/?searchid=36"><i>7</i>自身</a></li>
    <li><a href="/e/search/result/?searchid=16"><i>8</i>模板</a></li>
    <li><a href="/e/search/result/?searchid=22"><i>9</i>音乐</a></li>
    <li><a href="/e/search/result/?searchid=31"><i>10</i>JS</a></li>
  </ul>
</div> -->
  </div>
  <!-- 搜索 结束 -->

<div class="clear blank"></div>
